package com.crm.doca.services.impl;

import com.crm.doca.dao.UserDao;
import com.crm.doca.entity.UserEntity;
import com.crm.doca.services.UserService;

/**
 * Service providing service methods to work with user data and entity.
 * 
 * @author Dominik Cachovan
 */
public class UserServiceImpl implements UserService {

        private UserDao userDao;
        
        /**
         * Create user - persist to database
         * 
         * @param userEntity
         * @return true if success
         */
        public boolean createUser(UserEntity userEntity) {
                userDao.save(userEntity);
                return true;
        }

        public UserDao getUserDao() {
                return userDao;
        }

        public void setUserDao(UserDao userDao) {
                this.userDao = userDao;
        }

}	
